const flag = {
  state: {
    flag: "", // 'clear' 表示可清除
    axisTimeout: 5000 // 默认超时的时间为5000ms
  },

  mutations: {
    FLAG: (state, flag) => {
      state.flag = flag
    },
    axisTimeout: (state, axisTimeout) => {
      state.axisTimeout = axisTimeout
    }
  },

  actions: {
    FLAG({ commit }, flag) {
      commit('FLAG', flag)
    },
    axisTimeout({ commit }, axisTimeout) {
      commit('axisTimeout', axisTimeout)
    }
  }
}

export default flag

